package com.ihisomp.service;

import com.ihisomp.base.Result;
import com.ihisomp.dto.OmpUserDto;
import com.ihisomp.entity.OmpUser;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * 标题: IOmpUserService.java
 * 业务描述: 运营管理用户信息 服务类
 * 作者: zy
 * 日期: 2021/9/13
 * 版本: V1.0
 */
public interface IOmpUserService extends IService<OmpUser> {

    Result login(String loginName, String password);

    Result getUserInfo(String token);

    Result getUserPath(String userKey);

    Result updateLoginInfo(OmpUserDto ompUserDto);

    Result loginError(String loginName);

    Result checkPwd(OmpUserDto ompUserDto);

    Result updatePwd(OmpUserDto ompUserDto);

    Result add(OmpUserDto ompUserDto);

    Result update(String userKey, OmpUserDto ompUserDto);

    Result get(String userKey);

    Result search(long page, long size, OmpUserDto ompUserDto);

    Result updateStatus(String userKey, int activeFlg);
}
